<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>IFPlanner智能理财规划系统会员</title>
    <script src="js/jquery/jquery-1.8.3.min.js"></script>
    <script src="js/vue/vuedev.js"></script>
    <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
    <script>
    var _html = document.getElementsByTagName("html")[0];
    _html.style.fontSize = document.documentElement.clientWidth / 750 * 100 + "px";
    window.onresize = function(){
        _html.style.fontSize = document.documentElement.clientWidth / 750 * 100 + "px";
    };
    </script>
    <style>
        .wrap{
            padding-top: 1.25rem
        }
       .wrap>div{
           text-align: center;
       }
       .wrap>div:nth-child(1)>img{
           width: 1.56rem
       }
       .wrap>div:nth-child(2)>p{
            font-size:.3rem;
            font-family:PingFang-SC-Medium;
            font-weight:500;
            color:rgba(153,153,153,1);
            line-height:.5rem;
       }
       .wrap>div:nth-child(3){
            height:.8rem;
            background:rgba(0,132,255,1);
            border-radius:.4rem;
            font-size:.3rem;
            font-family:PingFang-SC-Medium;
            font-weight:500;
            color:rgba(255,255,255,1);
            line-height:.8rem;
            margin-top: 1.06rem
       }
    </style>
</head>
<body>
    <div class="wrap">
        <div><img src="images/sucess.png" alt=""></div>
        <div class="contentinfo">

        </div>
        <div  onclick="downloadFun()">下载顾问邦</div>
    </div>
    <script>

        console.log(returnCitySN.cip);

        var u = navigator.userAgent;
        var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
        var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端

        console.log(u)

        var  mobilePhoneDownload;
        if (isAndroid) {
            console.log("安卓")
            mobilePhoneDownload='http://app.mi.com/details?id=com.anyin.app'
        } 

        if(isiOS) {
            console.log("苹果")
            mobilePhoneDownload='https://sj.qq.com/myapp/detail.htm?apkName=com.anyin.app'
        }
        function downloadFun() {
            window.location.href = mobilePhoneDownload;
        }


        function searchKey(key){
            var reg = new RegExp(key + '=[^&]+');
            var url = decodeURI(window.location.href);
            if((reg).test(url)){
                return url.match(reg)[0].split('=')[1];
            }
        }

        document.querySelector('.contentinfo').innerHTML='<p>会员开通成功<br/> 即刻下载顾问邦快速成长吧！</p>'
        
         var created=function(){
             var _this=this
             if (_this.searchKey('fromhtml')=='shareRegiste') {
                _this.changeTitle('注册顾问帮')
             } else {
                 
             }

             var  sessinfo  = JSON.parse(sessionStorage.courseInfo);
              _this.changeTitle(sessinfo.name)
            
         }

    </script>
    <script src="js/main.js"></script>
</body>
</html>